package com.bricks2break;


public class Score {
	public int score;
	private Player player;

	/**
	 * Score class constructor
	 * 
	 * @param player
	 *            the player this score belongs to
	 */
	public Score(Player player) {
		this.player = player;
		score = 0;
	}

	public int getScoreValue() {
		return score;
	}

	/**
	 * Add points to the existing score
	 * 
	 * @param points
	 *            the points to add
	 */
	public void addPoints(int points) {
		// Score multiplier is used to give double points when the special mode
		// is active. (Could also be used to give handicap to a player in the
		// future)
		score += points * player.getScoreMultiplier();
	}
}
